#ifndef PHOTOSWITCH_H_
#define PHOTOSWITCH_H_
#include "WPIlib.h"
#include "GlobalInclude.h"

#include "Sensor.h"
class PhotoSwitch
{
public: 
		PhotoSwitch(Drive *y);
		~PhotoSwitch(void);
		int onLight(void);
		int onDark(void);
		int onDark1(void);
		int onDark3(void);
		int allLight(void);
		int allDark(void);
		int dLeft(void);
		int dRight(void);
		int lLeft(void);
		int lRight(void);
		float drive(int);
		float getLeftSpeed(void);
		float getRightSpeed(void);
		//void gyroSubroutine(int);
		DigitalInput *p1;//dark 1
		DigitalInput *p2;//dark 2
		DigitalInput *p3;//dark 3
		DigitalInput *p4;//light 1
		DigitalInput *p5;//light 2
		DigitalInput *p6;//light 3
		//Sensor *sensor;
		float leftSpeed;
		float rightSpeed;
		int binary; 
		Sensor *sensor;
private:

		float steeringGain;
		
};
#endif /*PHOTOSWITCH_H_*/
